/*
 * Copyright (C) 2023 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
#ifndef SE_SERVICE_IPC_INTERFACE_CODE_H
#define SE_SERVICE_IPC_INTERFACE_CODE_H

namespace OHOS {
namespace SE {
namespace OMAPI {
class SeServiceIpcInterfaceCode {
public:
    enum ServiceCommandCod {
        COMMAND_SERVICE_START_ID = 100,
        COMMAND_SERVICE_GET_READERS,
        COMMAND_SERVICE_GET_READER_IFACE,
        COMMAND_SERVICE_IS_NFC_EVENT_ALLOWED,
        COMMAND_SERVICE_SHUTDOWN,
        COMMAND_SERVICE_REGISTER_CALLER_LISTENER,
        // The last code, if you want to add a new code, please add it before this
        COMMAND_SERVICE_STUB_BOTTOM
    };

    enum ReaderCommandCode {
        COMMAND_READER_START_ID = 200,
        COMMAND_READER_OPEN_SESSION,
        COMMAND_READER_CLOSE_SESSIONS,
        COMMAND_READER_RESET,
        COMMAND_READER_IS_SE_PRESENT,
        // The last code, if you want to add a new code, please add it before this
        COMMAND_READER_STUB_BOTTOM
    };

    enum SessionCommandCode {
        COMMAND_SESSION_START_ID = 300,
        COMMAND_SESSION_CLOSE,
        COMMAND_SESSION_IS_CLOSED,
        COMMAND_SESSION_GET_ATR,
        COMMAND_SESSION_CLOSE_CHANNELS,
        COMMAND_SESSION_OPEN_BASIC_CHANNEL,
        COMMAND_SESSION_OPEN_LOGIC_CHANNEL,
        // The last code, if you want to add a new code, please add it before this
        COMMAND_SESSION_STUB_BOTTOM
    };

    enum ChannelCommandCode {
        COMMAND_CHANNEL_START_ID = 400,
        COMMAND_CHANNEL_CLOSE,
        COMMAND_CHANNEL_IS_CLOSED,
        COMMAND_CHANNEL_IS_BASIC_CHANNEL,
        COMMAND_CHANNEL_GET_SELECT_RESPONSE,
        COMMAND_CHANNEL_TRANSMIT,
        COMMAND_CHANNEL_SELECT_NEXT,
        // The last code, if you want to add a new code, please add it before this
        COMMAND_CHANNEL_STUB_BOTTOM
    };
}; // SeServiceIpcInterfaceCode
} // OMAPI
} // SE
} // OHOS
#endif // SE_SERVICE_IPC_INTERFACE_CODE_H